"""
环境配置

"""
import logging


class Config(object):
    DEBUG = False
    TESTING = False
    LOG_LEVEL = logging.INFO


class DevelopmentConfig(Config):
    DEBUG = True
    LOG_LEVEL = logging.DEBUG


class ProductionConfig(Config):
    DEBUG = False
    TESTING = False
    LOG_LEVEL = logging.INFO


class TestingConfig(Config):
    DEBUG = True
    TESTING = True
    LOG_LEVEL = logging.DEBUG


config = {
    'development': DevelopmentConfig,
    'testing': TestingConfig,
    'production': ProductionConfig
}
